﻿package mortal.game.net.command.task
{
    import Framework.MQ.*;
    import Message.Game.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.game.view.task.data.*;
    import mortal.mvc.core.*;

    public class TaskDoingDelCommand extends BroadCastCall
    {

        public function TaskDoingDelCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:* = param1.messageBase as STaskRemove;
            var _loc_3:* = Cache.instance.task.getTaskByCode(_loc_2.taskCode);
            Cache.instance.task.delTaskDoing(_loc_2.taskCode);
            NetDispatcher.dispatchCmd(ServerCommand.TaskDoingDel, _loc_3);
            return;
        }// end function

    }
}
